package com.alex.mapstruct;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * Author  : gaojun            <br/>
 * Date    : 2020/5/12                          <br/>
 * Time    : 3:06 下午                         <br/>
 * ---------------------------------------    <br/>
 * Desc    :
 */
@Mapper
public interface TestMapper {

    TestMapper MAPPER = Mappers.getMapper(TestMapper.class);

    @Mapping(target = "int2", source = "int1")
    ToObj convertToToObj(FromObj fromObj);
}
